package org.itboys.mobile.util;

import com.alibaba.fastjson.JSON;
import org.itboys.commons.utils.json.JsonUtils;
import org.itboys.weixin.dto.WeixinUserInfo;
import org.itboys.weixin.tools.WeixinUserUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 通过accountId获取某些重要值
 * Created by Administrator on 2017/3/6.
 */
public class TestJson {
    private static Logger logger = LoggerFactory.getLogger(WeixinUserUtils.class);




    public static void main(String[] args) {
      //  String userInfoStr="{\"subscribe\":1,\"openid\":\"od3TKwBHQVyNi0PrqfZgrA1sSdms\",\"nickname\":\"WitnessFuture\",\"sex\":1,\"language\":\"zh_CN\",\"city\":\"æ\u00ADå·\",\"province\":\"æµæ±\",\"country\":\"ä¸\u00ADå½\",\"headimgurl\":\"http:\\/\\/thirdwx.qlogo.cn\\/mmopen\\/TR11yJoXHgfyn4ebhX2zA1bZlY072szMTGPOibWmcfibjAhZPiaSHYtsoaI3OWvqWfX7TFmrQtYcvIGMBU7aSib9SF5ZanIf80iaA\\/132\",\"subscribe_time\":1520947551,\"remark\":\"\",\"groupid\":0,\"tagid_list\":[],\"subscribe_scene\":\"ADD_SCENE_QR_CODE\",\"qr_scene\":121,\"qr_scene_str\":\"\"}";
       // WeixinUserInfo userInfo = JsonUtils.jsonToObject(WeixinUserInfo.class, userInfoStr);
        // WeixinUserInfo userInfo2 = JSON.parseObject(userInfoStr,WeixinUserInfo.class);
     //   System.out.println(userInfo2.getOpenid());
        System.out.println(new Date().getTime());
    }

}
